﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master"
   CodeBehind="wfUsuADBnd.aspx.cs" Inherits="SY.wfUsuADBnd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
   <base target="_self" />
   <script type="text/javascript">
      window.onload = function () {
         this.ResizeGrid();
         this.MessageOnPostback();
      }

      function ResizeGrid() {
         internalGridResize("<%= grdList.ClientID %>");
      }

      function rowDblClick(rowIndex) {
         var row = getGridRowByIndex('<%= grdList.ClientID %>', rowIndex);
         var objValues = [];
         objValues[0] = getObjInnerText(row.cells[0]);
         objValues[1] = getObjInnerText(row.cells[1]);
         objValues[2] = getObjInnerText(row.cells[2]);
         window.returnValue = objValues;
         window.close();
      }

   </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
   <asp:UpdatePanel ID="UpdatePanel1" runat="server">
      <ContentTemplate>
         <div class="DataHeader">
            <table id="TableDataHeader" cellpadding="0" cellspacing="0">
               <tr>
                  <td colspan="3">
                     &nbsp;
                  </td>
               </tr>
            </table>
         </div>
         <div class="DataDetail">
            <esd:esdGridView CssClass="esdGridView" ID="grdList" runat="server" ScrollWidth="100%"
               Width="100%" ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" 
               DataKeyNames="idLogon" onrowcreated="grdList_RowCreated">
               <Columns>
                  <asp:BoundField DataField="idLogon" HeaderText="Usuario"></asp:BoundField>
                  <asp:BoundField DataField="dsNombres" HeaderText="Nombres"></asp:BoundField>
                  <asp:BoundField DataField="dsApellidos" HeaderText="Apellidos"></asp:BoundField>
                  <asp:BoundField DataField="stAnulado" HeaderStyle-CssClass="hideDataGridColumn" ItemStyle-CssClass="hideDataGridColumn">
                  </asp:BoundField>
               </Columns>
               <EmptyDataTemplate>
                  <div id="gridempty">
                     <asp:Image ID="imgEmpty" runat="server" ImageUrl="../Images/Controls/Attention.png" />
                     &nbsp;No existen registros para esta solicitud.
                  </div>
               </EmptyDataTemplate>
            </esd:esdGridView>
         </div>
      </ContentTemplate>
   </asp:UpdatePanel>
</asp:Content>
